/*
 * UPixelFormat.h
 *
 *  Created on: 2016年1月16日
 *      Author: terry
 */

#ifndef UPIXELFORMAT_H_
#define UPIXELFORMAT_H_


#include "BasicType.h"

/////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
extern "C"
{
#endif

/////////////////////////////////////////////////////////////////////////////


enum UPixelFormat
{
    PIXEL_FMT_NONE = -1,

    PIXEL_FMT_I420,  /// yuv 4:2:0 planar, AV_PIX_FMT_YUV420P
    PIXEL_FMT_YUY2,  /// packed YUV 4:2:2, AV_PIX_FMT_YUYV422
    PIXEL_FMT_RGB,   /// RGB24, AV_PIX_FMT_RGB24
    PIXEL_FMT_BGR,   /// AV_PIX_FMT_BGR24
    PIXEL_FMT_I422,  /// AV_PIX_FMT_YUV422P
    PIXEL_FMT_I444,  /// AV_PIX_FMT_YUV444P

    PIXEL_FMT_YV12 = 12,  /// yvu 4:2:0 planar, AV_PIX_FMT_YUVJ420P

    PIXEL_FMT_UYVY = 15,     /// packed YUV 4:2:2, AV_PIX_FMT_UYVY422

    PIXEL_FMT_NV12 = 23,  /// yuv 4:2:0, with one y plane and one packed u+v, AV_PIX_FMT_NV12

    PIXEL_FMT_RGB32= 26,     /// AV_PIX_FMT_RGBA
    PIXEL_FMT_BGRA = 28,     /// AV_PIX_FMT_BGRA

	PIXEL_FMT_YVYU422 = 110, /// packed YUV 4:2:2, Y0 Cr Y1 Cb

    PIXEL_FMT_MAX /* end of list */
};


/////////////////////////////////////////////////////////////////////////////

#ifdef __cplusplus
}
#endif
/////////////////////////////////////////////////////////////////////////////

#endif /* UPIXELFORMAT_H_ */
